/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech;
import java.io.File;
import javax.swing.filechooser.FileFilter;
/**
 *
 * @author RUOL
 */
public class jpgfile extends FileFilter {

    @Override
    public boolean accept(File f) {
        return f.getName().toLowerCase().endsWith(".jpg") ||f.getName().toLowerCase().endsWith(".jpeg");
    }

    @Override
    public String getDescription() {
       return ".jpg(1) file(s)"; 
    }
    
}
